package xkp.lesson.entity;

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;

public class BankAccountEntity {
    private Integer accountId;
    private String accountName;
    private BigDecimal accountMoney;
    private Timestamp createTime;
    private Timestamp updateTime;

    public BankAccountEntity() {
    }

    public BankAccountEntity(String accountName, BigDecimal accountMoney, Timestamp createTime, Timestamp updateTime) {
        this.accountName = accountName;
        this.accountMoney = accountMoney;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public BankAccountEntity(Integer accountId, String accountName, BigDecimal accountMoney, Timestamp createTime, Timestamp updateTime) {
        this.accountId = accountId;
        this.accountName = accountName;
        this.accountMoney = accountMoney;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public BigDecimal getAccountMoney() {
        return accountMoney;
    }

    public void setAccountMoney(BigDecimal accountMoney) {
        this.accountMoney = accountMoney;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "BankAccountEntity{" +
                "accountId=" + accountId +
                ", accountName='" + accountName + '\'' +
                ", accountMoney=" + accountMoney +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
